window.onload=loadPage;

$(function(){
	
});
function imgClick(){
	location.href="user.html";
}
function loadPage() {
	$.ajax({
        url: "http://127.0.0.1:8080/user/register",
        timeout: 30000,
        type: "get",
        dataType: "json",
        success: function (data) {
        	var html = "";
        	for(var i = 0; i < data.length; i++){
        		html=html+"<tr>"
        					+"<td>"+data[i].department+"</td>"
        					+"<td>"+data[i].person_name+"</td>"
        					+"<td>"+data[i].registrationfee+"元</td>"
        					+"<td>"+data[i].CNworktime+"</td>"
        					+"<td>"+data[i].CNcreatetime+"</td>"
						 +"</tr>";
        	}
			$("#tableBody").html(html);
        }
	});
}